﻿using PureMVC.Interfaces;
using PureMVC.Patterns;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class StartFacade : Facade {

    public new static IFacade Instance
    {
        get
        {
            if (m_instance == null)
            {
                lock (m_staticSyncRoot)
                {
                    if (m_instance == null)
                    {
                        m_instance = new StartFacade();
                    }
                }
            }
            return m_instance;
        }
    }

    public StartFacade()
    {
        this.InitializeFacade();
    }


    protected override void InitializeView()
    {
        base.InitializeView();
    }
    protected override void InitializeModel()
    {
        base.InitializeModel();
    }
    protected override void InitializeController()
    {
        base.InitializeController();
        RegisterCommand(HitSystemEvent.StartUp, typeof(HitStartCommand));
    }

    public void StartUp(MainUI uI)
    {
        SendNotification(HitSystemEvent.StartUp, uI);
    }
}
